#ifndef _HAL_USART_H_
#define _HAL_USART_H_

#include "bsp.h"

struct  _hal_serial
{
    int8_t (*serial_init)(uint32_t ms);
    int8_t (*serial_deinit)(void);
    int (*serial_str_cmp)(char *cmd);
    uint8_t (*serial_parse_parm)(char *buf, char **argv);
};


int8_t hal_serial_init(void);
int8_t hal_serial_deinit(void);
int hal_serial_str_cmp(char *str);
uint8_t hal_serial_pasre_parm(char *buf, char **argv);
#endif
